import Toast from 'react-native-root-toast';

export default class ToastUtils {
  static show(message) {
    this.toast && this.toast.destroy();
    this.toast = Toast.show(message, {
      duration: Toast.durations.SHORT,
      position: Toast.positions.CENTER,
      shadow: true,
      animation: true,
      hideOnPress: true,
      delay: 0
    });
  }
}
